MailPoet\Automation\Engine\Storage\AutomationStorage A

Total Complexity 62
Dependencies 6
Dependents 26
Total lines 512
Lines of code 427
Logical lines of code 152
Comment lines 34
Methods 20
Properties 5

Methods 20

Method Rating Maintainability Complexity Lines of code
getAutomations()
A
41 11 53
insertAutomationTriggers()
A
45 7 50
deleteAutomation()
S
48 6 38
getAutomationIdsBySubject()
S
50 4 30
getAutomationCount()
S
51 4 27
getAutomation()
S
55 4 23
getAutomationWithDifferentVersions()
S
51 3 31
truncate()
S
59 4 15
updateAutomation()
S
60 4 13
getAutomationVersionDates()
S
56 2 20
insertAutomationVersion()
S
60 2 14
createAutomation()
S
60 2 13
getActiveAutomationsByTriggerKey()
S
54 1 28
getCountOfActiveByTriggerKeysAndAction()
S
53 1 28
getActiveTriggerKeys()
S
61 1 17
getNameColumnLength()
S
68 2 7
__construct()
S
66 1 8
getActiveAutomationsByTrigger()
S
80 1 3
getAutomationHeaderData()
S
73 1 5
throwDatabaseError()
S
76 1 4